#ifndef WIDGET_FUNCC_SMART_HOME_H
#define WIDGET_FUNCC_SMART_HOME_H

#include <QWidget>
#include <QTcpSocket>
#include <QDebug>
#include <QString>

#include <QLayout>
#include <QCamera>
#include <QCameraViewfinder>
#include <QCameraImageCapture>

#include <QFileDialog>
#include <QMessageBox>

#include "button_on_off.h"



#include <mainscene.h>

#define  POST    8888           // 端口号
#define  IP      "127.0.0.1"    // IP地址

namespace Ui {
class Widget_funcC_Smart_Home;
}

class Widget_funcC_Smart_Home : public QWidget
{
    Q_OBJECT
    
public:
    explicit Widget_funcC_Smart_Home(QWidget *parent = nullptr);
    ~Widget_funcC_Smart_Home();

    //TCP 通讯对象
    QTcpSocket * m_Socket;

public:
    QCamera * M_Camera;                             // 摄像头类  相机
    QCameraViewfinder * M_CameraViewfinder;         // 显示控件  取景器
    QCameraImageCapture * M_CameraImageCapture;     // 图像获取

    QLayout * layout;                               // 布局类

    My_Game * m_game;                               // 游戏类



    bool is_Open_Camera = false;                    // 监控开启状态位

protected:



private slots:

    
private:
    Ui::Widget_funcC_Smart_Home *ui;
};

#endif // WIDGET_FUNCC_SMART_HOME_H
